package com.itrencai.d20_proxy;

public class Test {
    public static void main(String[] args) {
        //1.把业务对象直接做成一个代理对象返回，代理对象的类型也是UserService类型
        UserService userService=ProxyUtil.getProxy(new UserServiceImpl());
        //UserService userService=new UserServiceImpl();
        System.out.println(userService.login("admin", "123456"));
        System.out.println(userService.deleteUsers());
        userService.selectUsers();
        userService.updateUsers();

    }
}
